package org.dromara.authcode.domain.bo;

import org.dromara.authcode.domain.TDeviceOrder;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 设备订购信息业务对象 t_device_order
 *
 * @author Miles Meng
 * @date 2025-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TDeviceOrder.class, reverseConvertGenerate = false)
public class TDeviceOrderBo extends BaseEntity {

    /**
     * 购买标识主键
     */
    @NotNull(message = "购买标识主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 设备ID
     */
    private Long deviceId;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 到期时间
     */
    @NotNull(message = "到期时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date expireTime;


}
